package com.samuel.basics.bean;

import java.io.Serializable;

/**
 *	代码生成对象 
 * @author kaiji
 */
public class GcBean implements Serializable {

	private static final long serialVersionUID = -391564655286322064L;

	/** 数据库信息 */
	private String url;
	private String driverName;
	private String username;
	private String password;
	
	/** 其他信息 */
	private String authorName;
	private String parentPackagePath;
	private String tableName;
	private String tablePrefix;
	
	/** model公共类字段 多个逗号隔开 */
	private String[] commonFiled;

	private Context context;

	/** 是否生成控制器代码开关 */
	private Boolean controllerSwitch = true;
	/** 主页 */
	private Boolean indexPageSwitch = true;
	/** 添加页面 */
	private Boolean addPageSwitch = true;
	/** 查看页面 */
	private Boolean viewPageSwitch = true;
	/** js **/
	private Boolean jsSwitch = true;
	/** dao */
	private Boolean daoSwitch = true;
	/** xml mapper */
	private Boolean mapperSwitch = true;
	/** //service **/
	private Boolean serviceSwitch = true;
	/** 生成实体的开关 **/
	private Boolean entitySwitch = true;
	/** 生成sql的开关 */
	private Boolean sqlSwitch = true;


	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getDriverName() {
		return driverName;
	}

	public void setDriverName(String driverName) {
		this.driverName = driverName;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getAuthorName() {
		return authorName;
	}

	public void setAuthorName(String authorName) {
		this.authorName = authorName;
	}

	public String getParentPackagePath() {
		return parentPackagePath;
	}

	public void setParentPackagePath(String parentPackagePath) {
		this.parentPackagePath = parentPackagePath;
	}

	public String getTableName() {
		return tableName;
	}

	public void setTableName(String tableName) {
		this.tableName = tableName;
	}

	public String getTablePrefix() {
		return tablePrefix;
	}

	public void setTablePrefix(String tablePrefix) {
		this.tablePrefix = tablePrefix;
	}

	public String[] getCommonFiled() {
		return commonFiled;
	}

	public void setCommonFiled(String[] commonFiled) {
		this.commonFiled = commonFiled;
	}

	public Context getContext() {
		return context;
	}

	public void setContext(Context context) {
		this.context = context;
	}

	public Boolean getControllerSwitch() {
		return controllerSwitch;
	}

	public void setControllerSwitch(Boolean controllerSwitch) {
		this.controllerSwitch = controllerSwitch;
	}

	public Boolean getIndexPageSwitch() {
		return indexPageSwitch;
	}

	public void setIndexPageSwitch(Boolean indexPageSwitch) {
		this.indexPageSwitch = indexPageSwitch;
	}

	public Boolean getAddPageSwitch() {
		return addPageSwitch;
	}

	public void setAddPageSwitch(Boolean addPageSwitch) {
		this.addPageSwitch = addPageSwitch;
	}

	public Boolean getViewPageSwitch() {
		return viewPageSwitch;
	}

	public void setViewPageSwitch(Boolean viewPageSwitch) {
		this.viewPageSwitch = viewPageSwitch;
	}

	public Boolean getJsSwitch() {
		return jsSwitch;
	}

	public void setJsSwitch(Boolean jsSwitch) {
		this.jsSwitch = jsSwitch;
	}

	public Boolean getDaoSwitch() {
		return daoSwitch;
	}

	public void setDaoSwitch(Boolean daoSwitch) {
		this.daoSwitch = daoSwitch;
	}

	public Boolean getMapperSwitch() {
		return mapperSwitch;
	}

	public void setMapperSwitch(Boolean mapperSwitch) {
		this.mapperSwitch = mapperSwitch;
	}

	public Boolean getServiceSwitch() {
		return serviceSwitch;
	}

	public void setServiceSwitch(Boolean serviceSwitch) {
		this.serviceSwitch = serviceSwitch;
	}

	public Boolean getEntitySwitch() {
		return entitySwitch;
	}

	public void setEntitySwitch(Boolean entitySwitch) {
		this.entitySwitch = entitySwitch;
	}

	public Boolean getSqlSwitch() {
		return sqlSwitch;
	}

	public void setSqlSwitch(Boolean sqlSwitch) {
		this.sqlSwitch = sqlSwitch;
	}

}
